package com.zrsx.managemodel.service.serviceImpl;

import com.zrsx.managemodel.common.entity.CreditInterpretation;
import com.zrsx.managemodel.common.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "credit-search",path = "/credit")
public interface OpenFeignService {

    @GetMapping("/interpretation/{id}")
    public Result<CreditInterpretation> getCreditInterpretation(@PathVariable Integer id);

    @GetMapping("/{id}/{dimension}")
    public Result<Integer> getCreditDimension(@PathVariable Integer id,@PathVariable String dimension);
}
